home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
YICN23.ZIP
/
INCLUDE
/
YAKSTICK.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-14
|
542b
|
27 lines
#include "stddefs.h"
#ifndef YAKSTICK.H
#define YAKSTICK.H
extern int jsense;
extern int jrange;
class yakStick //joystick class object!
{
public:
byte stickNumber;
int x, y;
byte button1, button2;
yakStick(byte number) {stickNumber = number; x=y=0; button1=button2=0; jsense = 10; jrange = 200;};
int read(void);
int readX(void);
int readY(void);
byte readButton1(void);
byte readButton2(void);
};
#ifndef YAKSTICKUNIT
extern yakStick joystick1(1);
extern yakStick joystick2(2);
#endif
#endif